<?php

namespace App\Containers\AppSection\Profile\Actions;

use App\Containers\AppSection\Profile\Models\Profile;
use App\Containers\AppSection\Profile\Tasks\FindProfileByIdTask;
use App\Ship\Parents\Actions\Action;
use App\Ship\Parents\Requests\Request;

class GetOuterProfileAction extends Action
{
    public function run($id, Request $request): Profile
    {
        return app(FindProfileByIdTask::class)->addRequestCriteria()->run($id);
    }
}
